package com.boot2523.mapper;


import com.boot2523.bean.Dept;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface DeptMapper {
    int insert(Dept d);
    int delete(int id);
    int update(Dept d);
    List<Dept> all();
    Dept one(int id);
//    分页
    @Select(value = "select * from dept limit #{param1},#{param2}")
    List<Dept> page(int begin,int len);
}
